package com.zp.self.springboot.自定义start配置;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@Configuration
public class HelloController {



    @GetMapping("/hello/{name}")
    public String hello(@PathVariable(value = "name") String name) {
        return name + " , " ;
    }

}
